using UnityEngine;
using System.Collections;

public class TerrainEditor : MonoBehaviour 
{
	public Vector2 frames = new Vector2();
	public Vector2 currentFrame = new Vector2();
	public bool isWalkable = true;
	
	public static TerrainEditor TE;
	
	Sprite sprite;
	void Awake()
	{
		sprite = new Sprite(this.transform, frames, currentFrame);
		TE = this;
	}
	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		sprite.setFrame(currentFrame);
		
		if(currentFrame == new Vector2(0,1))
		{
			isWalkable = false;
		}
		else
		{
			isWalkable = true;
		}
	}
}
